package com.xpec.c4.service.module;

import java.util.HashMap;

/**
 * 
 */
public class ModuleClassMapping {

	/**
	 * 
	 */
	public static final HashMap<String, String> moduleClassMapping = new HashMap<String, String>();

	/**
	 * 
	 * @param moduleName
	 * @param className
	 * @return
	 */
	public static String putData(String moduleName, String className) {
		return ModuleClassMapping.moduleClassMapping.put(moduleName, className);
	}

	/**
	 * 
	 * @param moduleName
	 * @return
	 */
	public static String getClassName(String moduleName) {
		if (moduleName != null && moduleName.length() > 0) {
			return ModuleClassMapping.moduleClassMapping.get(moduleName);
		}
		return null;
	}

	static {
		putData(ModuleName.LOGIN, "com.xpec.c4.game.login.LoginModule");
		putData(ModuleName.GAMELOG, "com.ms.service.module.gamelog.GameLogModule");
		putData(ModuleName.GATEWAY, "com.xpec.c4.service.module.gateway.GatewayModule");
		putData(ModuleName.H5GATEWAY, "com.xpec.c4.service.module.h5gateway.H5GatewayModule");
		putData(ModuleName.GAMELOBBY, "com.ms.game.lobby.GameLobbyModule");

		putData(ModuleName.ACCOUNT, "com.ms.service.module.account.AccountModule");

		putData(ModuleName.COMMON, "com.xpec.c4.service.module.common.CommonModule");
		putData(ModuleName.DATA_CENTER, "com.xpec.c4.service.module.datacenter.DataCenterModule");
		putData(ModuleName.DATA_CENTER_LITE, "com.ms.service.module.datacenterlite.DataCenterLiteModule");

		// logspout
		putData(ModuleName.LOGSPOUT, "com.ms.service.module.logspout.LogSpoutModule");

		// web platform proxy
		putData(ModuleName.WEB_PLATFORM, "com.ms.game.webplatform.WebPlatformModule");

		// 2015/12/29 JP Brocast module add by robert
		putData(ModuleName.JPBORCAST, "com.ms.game.jackpot.JackPotBrocastModule");

		// 2015/01/20
		putData(ModuleName.ROBOT_SERVER, "com.ms.service.module.msrobot.base.MSRobotBaseWorkerModule");
		putData(ModuleName.ROBOT_CENTER, "com.ms.service.module.msrobot.robotcenter.MSRobotCenterModule");

		// GMTool
		putData(ModuleName.GMTOOL, "com.xpec.c4.service.gmtool.GMToolModule");

		// honbo
		putData(ModuleName.HONBO, "com.ms.service.module.honbo.HoboModule");

		// rebate
		putData(ModuleName.COMMISON, "com.ms.service.module.commission.CommissionModule");

		// ANALYSIS
		putData(ModuleName.ANALYSIS, "com.ms.service.module.analysis.AnalysisModule");
		putData(ModuleName.GROUP_ANALYSIS, "com.ms.service.module.analysisgroup.AnalysisGroupModule");

		// 任務server
		putData(ModuleName.GROUP_MISSION, "com.ms.service.module.mission.MissionModule");

		// 福袋
		putData(ModuleName.BONUS_PACK, "com.ms.service.module.bonuspack.BonusPackModule");

		// 跑馬燈collect
		putData(ModuleName.MARQUEE_COLLECTOR, "com.ms.service.module.marqueecollector.MarqueeCollectorModule");

		// 角色名稱檢查
		putData(ModuleName.PLAYER_NAME_VERIFY, "com.xpec.c4.game.playername.PlayerNameVerifyModule");

		// rank handler
		putData(ModuleName.RANK_HANDLER, "com.ms.service.module.rank.rankHandler.RankHandlerModule");
		
		putData(ModuleName.BACR_DOORMAN, "com.ms.service.module.baccarat.dm.BacrDmModule");
		putData(ModuleName.BACR_GAME, "com.ms.service.module.baccarat.BacrGameModule");
		
		// 捕鱼
		putData(ModuleName.FISH_GAME, "com.ms.service.module.fish.FishGameModule");
		
	}
}
